package com.yichi.device_bean;

/**
 * PLC信息
 */
public class PlcInfo {
    private Integer heartbeat;//心跳
    private Integer outputDoorStatus1;//取出仓1门状态：0关闭 1打开
    private Integer outputDoorStatus2;//取出仓2门状态：0关闭 1打开
    private Integer outputDoorStatus3;//取出仓3门状态：0关闭 1打开
    private Integer outputBatteryStatus1;//取出仓1电池状态：0无电池 1有电池
    private Integer outputBatteryStatus2;//取出仓2电池状态：0无电池 1有电池
    private Integer outputBatteryStatus3;//取出仓3电池状态：0无电池 1有电池
    private Integer inputDoorStatus1;//存入仓1门状态：0关闭 1打开
    private Integer inputDoorStatus2;//存入仓2门状态：0关闭 1打开
    private Integer inputDoorStatus3;//存入仓3门状态：0关闭 1打开
    private Integer batteryMoveStatus;//电池移动状态：0未移动 1移动中 2移动完成

    //根据编号获取存取电仓门状态
    public Integer getDoorStatusByStoreNo(Integer storeNo) {
        switch (storeNo) {
            case 1:
                return this.inputDoorStatus1;
            case 2:
                return this.inputDoorStatus2;
            case 3:
                return this.inputDoorStatus3;
            case 4:
                return this.outputDoorStatus1;
            case 5:
                return this.outputDoorStatus2;
            case 6:
                return this.outputDoorStatus3;
            default:
                return null;
        }
    }

    //根据编号获取取电仓电池
    public Integer getBatteryStatusByStoreNo(Integer storeNo) {
        switch (storeNo) {
            case 4:
                return this.outputBatteryStatus1;
            case 5:
                return this.outputBatteryStatus2;
            case 6:
                return this.outputBatteryStatus3;
            default:
                return null;
        }
    }

    public Integer getHeartbeat() {
        return heartbeat;
    }

    public void setHeartbeat(Integer heartbeat) {
        this.heartbeat = heartbeat;
    }

    public Integer getOutputDoorStatus1() {
        return outputDoorStatus1;
    }

    public void setOutputDoorStatus1(Integer outputDoorStatus1) {
        this.outputDoorStatus1 = outputDoorStatus1;
    }

    public Integer getOutputDoorStatus2() {
        return outputDoorStatus2;
    }

    public void setOutputDoorStatus2(Integer outputDoorStatus2) {
        this.outputDoorStatus2 = outputDoorStatus2;
    }

    public Integer getOutputDoorStatus3() {
        return outputDoorStatus3;
    }

    public void setOutputDoorStatus3(Integer outputDoorStatus3) {
        this.outputDoorStatus3 = outputDoorStatus3;
    }

    public Integer getOutputBatteryStatus1() {
        return outputBatteryStatus1;
    }

    public void setOutputBatteryStatus1(Integer outputBatteryStatus1) {
        this.outputBatteryStatus1 = outputBatteryStatus1;
    }

    public Integer getOutputBatteryStatus2() {
        return outputBatteryStatus2;
    }

    public void setOutputBatteryStatus2(Integer outputBatteryStatus2) {
        this.outputBatteryStatus2 = outputBatteryStatus2;
    }

    public Integer getOutputBatteryStatus3() {
        return outputBatteryStatus3;
    }

    public void setOutputBatteryStatus3(Integer outputBatteryStatus3) {
        this.outputBatteryStatus3 = outputBatteryStatus3;
    }

    public Integer getInputDoorStatus1() {
        return inputDoorStatus1;
    }

    public void setInputDoorStatus1(Integer inputDoorStatus1) {
        this.inputDoorStatus1 = inputDoorStatus1;
    }

    public Integer getInputDoorStatus2() {
        return inputDoorStatus2;
    }

    public void setInputDoorStatus2(Integer inputDoorStatus2) {
        this.inputDoorStatus2 = inputDoorStatus2;
    }

    public Integer getInputDoorStatus3() {
        return inputDoorStatus3;
    }

    public void setInputDoorStatus3(Integer inputDoorStatus3) {
        this.inputDoorStatus3 = inputDoorStatus3;
    }

    public Integer getBatteryMoveStatus() {
        return batteryMoveStatus;
    }

    public void setBatteryMoveStatus(Integer batteryMoveStatus) {
        this.batteryMoveStatus = batteryMoveStatus;
    }
}
